import '@/utils/ald-stat.js'
import Vue from 'vue'
import App from './App'
import store from './store'

Vue.config.productionTip = false
// 注入store
Vue.prototype.$store = store
App.mpType = 'app'

const app = new Vue(App)
app.$mount()

export default {
  config: {
    // 页面前带有 ^ 符号的,会被编译成首页,其他页面可以选填,我们会自动把 webpack entry 里面的入口页面加进去
    pages: [
      '^pages/home/main',
      'pages/community/main',
      'pages/publish-post/main',
      'pages/my-travel/main',
      'pages/account/main',
      'pages/my-orders/main',

      'pages/travel-list/main',
      'pages/travel-detail/main',
      'pages/create-order/main',

      'pages/travelers-admin/main',
      'pages/traveler-add/main',
      'pages/traveler-edit/main',

      'pages/route-detail/main',
      'pages/my-travel-schedules/main',
      'pages/account-info/main'
    ],
    window: {
      backgroundTextStyle: 'light',
      // navigationStyle: 'custom',
      navigationBarBackgroundColor: '#fff',
      navigationBarTitleText: 'WeChat',
      navigationBarTextStyle: 'black'
    },
    tabBar: {
      color: '#bfbfbf',
      selectedColor: '#00b293',
      list: [
        {
          pagePath: 'pages/home/main',
          iconPath: 'static/icons/home.png',
          selectedIconPath: 'static/icons/home-active.png',
          text: '首页'
        },
        {
          pagePath: 'pages/community/main',
          iconPath: 'static/icons/community.png',
          selectedIconPath: 'static/icons/community-active.png',
          text: '社区'
        },
        {
          pagePath: 'pages/my-travel/main',
          iconPath: 'static/icons/travel.png',
          selectedIconPath: 'static/icons/travel-active.png',
          text: '行程'
        },
        {
          pagePath: 'pages/account/main',
          iconPath: 'static/icons/account.png',
          selectedIconPath: 'static/icons/account-active.png',
          text: '个人'
        }
      ]
    }
  }
}
